<%--
  Created by IntelliJ IDEA.
  User: Oracle
  Date: 2022/4/17
  Time: 10:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <style type="text/css">
        .boxDiv{
            background-color: #00000010;
            width: 150px;
            height: 170px;
            margin: 20px 0 0 40px;
            text-align: center;
            font-size: 16px;
            float: left;
        }
        a{
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div class="title">
        <h2>Box Management</h2>
    </div>
    <a href="${pageContext.request.contextPath }/goods/gotoAddBox">
        <h2>+ 添加新武器箱</h2>
    </a>

        <div class="boxList">

            <c:forEach items="${requestScope.allBoxList}" var="box">
                <a href="/goods/getBox2/${box.id}">
                <div class="boxDiv">
                    <div class="boxImg">
                        <img src="${box.boxImg}" width="140px" height="150px">
                    </div>
                    <div class="boxName">
                        <font>${box.boxName} 武器箱</font>
                    </div>
                </div>
                </a>
            </c:forEach>

        </div>
</body>
</html>
